package com.glx.learn_spring.learn_spring_09_di_collection.dao;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author haoli
 * @create 2022/11/30 19:10
 */
public class AppForDICollection {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        IBookDao bookDao = ctx.getBean("bookDao", IBookDao.class);
        bookDao.save();
    }
}
